home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
VISUALBA
/
TLSTVBX2.ZIP
/
FORM1.FRM
< prev
next >
Wrap
Text File
|
1993-11-06
|
4KB
|
129 lines
VERSION 2.00
Begin Form Form1
BorderStyle = 3 'Fixed Double
Caption = "Form1"
ClientHeight = 3960
ClientLeft = 1125
ClientTop = 2355
ClientWidth = 7800
Height = 4365
Left = 1065
LinkTopic = "Form1"
ScaleHeight = 264
ScaleMode = 3 'Pixel
ScaleWidth = 520
Top = 2010
Width = 7920
Begin CommandButton cmd
Caption = "GO"
Height = 345
Index = 1
Left = 6600
TabIndex = 4
Top = 990
Width = 1020
End
Begin PictureBox pic
AutoRedraw = -1 'True
AutoSize = -1 'True
BorderStyle = 0 'None
Height = 195
Left = 285
Picture = FORM1.FRX:0000
ScaleHeight = 13
ScaleMode = 3 'Pixel
ScaleWidth = 18
TabIndex = 3
Top = 225
Width = 270
End
Begin CommandButton cmd
Caption = "Quit"
Height = 345
Index = 0
Left = 6600
TabIndex = 1
Top = 570
Width = 1020
End
Begin TListBox lst
BackColor = &H00C0C0C0&
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00000000&
Height = 3120
Left = 240
MultiSelect = 2 'Extended
TabIndex = 0
Top = 585
TransparentBitmap= -1 'True
Width = 6120
End
Begin Label lbl
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Column 0"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 240
Index = 0
Left = 630
TabIndex = 2
Top = 180
Width = 960
End
End
DefInt A-Z
Sub cmd_Click (index As Integer)
If index = 0 Then
Unload Me
Exit Sub
End If
Dim rc As rect, lDum As Long
lst.ItemForeColor(4) = QBColor(4)
'lst.Columns = 2
End Sub
Sub Form_Load ()
' You can have up to 10 tabstops, that is from 0 to 9
lst.TabStops(0) = 80
' GTList offsets the bitmap 3 pixels from the left
' and offsets the text 2 pixels from the right of
' the bitmap. Hence, we add 5 to set the label
lbl(0).Left = lst.TabStops(0) + lst.Left + pic.Width + 5
For x = 0 To screen.FontCount - 1
lst.AddItem "Item " & x & Chr(9) & screen.Fonts(x)
Next
pic.Picture = LoadPicture("bitmap2.bmp")
lst.ItemImage(0) = pic.Picture
lst.ItemForeColor(2) = QBColor(1)
For x = 1 To screen.FontCount - 1
lst.ItemImage(x) = pic.Picture
Next
lst.ListIndex = 0
'tlist1.AddItem "George Rallos"
'tlist1.AddItem "Rallos Torralba"
'tlist1.ListIndex = 0
End Sub